﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(LayersLoaderWithGroup))]
public class LayersLoaderWithGroupEditor : UnityEditor.Editor
{
    public override void OnInspectorGUI()
    {
        //base.OnInspectorGUI();
        DrawDefaultInspector();

        LayersLoaderWithGroup layersLoader = (LayersLoaderWithGroup) target;

        if (GUILayout.Button("生成图层"))
        {
            layersLoader.BuildLayers();
        }
    }
}